<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link type="text/css" rel="stylesheet" href="../css/mui.css" />
		<link type="text/css" rel="stylesheet" href="../css/jifenzhuanran.css" />
		<link type="text/css" rel="stylesheet" href="../css/iconfont.css" />
		<script src="../js/mui.js"></script>
		<title></title>
	</head>
	<body>
		<header style="background: #005aab;" class="mui-bar mui-bar-nav head">
			<span class="mui-icon mui-icon-back"></span>
			<h1 style="color: #FFFFFF; letter-spacing: 4px;" class="mui-title">积分转让</h1>
			<span class="mui-icon mui-icon-more"></span>
		</header>
		<div class="mui-content">
			<div class="mui-input-group">
			    <div class="mui-input-row">
			        <label>转让积分</label>
			        <input id="ipt1" type="text" class="mui-input-clear" placeholder="请输入积分数值">
			    </div>
			    <div class="mui-input-row">
			        <label>对方手机号</label>
			        <input id="ipt2" type="text" class="mui-input-clear" placeholder="请输入11位手机号码">
			    </div>
			    <div id="btn" class="btns">
			    	<button type="button" class="mui-btn mui-btn-primary">确定转让</button>
			    </div>
			</div>
		</div>
	</body>
	<script>
		mui.init();
	</script>
	<script>
		var numbers=150;
		document.getElementById("btn").addEventListener('tap',function(){
			var this_number=this.parentNode.childNodes.item(3).innerHTML.split("积分").join("");
//			alert(jifen);
			var btnArray = ['确定', '取消'];
			    mui.confirm('确认转让？', '温馨提示', btnArray, function(e)
			    {
			        if (e.index == 1)
			        {} 
			        else 
			        {
						if(this_number>numbers){
			            	mui.alert("转让成功！");
			            }else{
			            	mui.alert("对不起，积分不足，转让失败!");
			            }
			        }
			    })
		})
		//判断输入情况
		function yanzhen(){
			var jifen=document.getElementById("ipt1").value;
			var phonenum=document.getElementById("ipt2").value;
		}
		//积分转让
		function chanagejifen(){
			
		}
	</script>
</html>
